package edu.pitt.coe1186.theta.util;

/**
 *
 * @author Yuxin Liu
 */
public class Global {
	private static Global instance;
	private static boolean isNew;
    
    public static synchronized Global getInstance() {
		if (instance == null)
			instance = new Global();
		return instance;
	}

	public boolean isNew() {
		return isNew;
	}

	/********************************
		Start From Here!!!
		
		Instructions: 
		1. Declare variable.
		2. Write setter and getter

		Sample usage:
		in your class, 
		import package edu.pitt.coe1186.theta.util.Global;

		Global g = Global.getInstance();
		
		//global Varable
		if(g.getMyArray()==null){
			g.setMyArray(new Array<int>[200]);
		}
		g.getMyArray()[0] = 1;



		//if your varible is a class
		if(g.getX()==null){
			g.setX(new ClassX());
		}
		g.getX().yourClassFunctionCall() = 2;
	*********************************/


	/********************************
		Declare variables Here
	*********************************/
	private static int[] Signals;


	/********************************
	  Write setter and getter Here
	*********************************/
	public void setSignals(int[] s){
		Signals = s;
	}
	public int[] getSignals(){
		return Signals;
	}


}
